<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>C++ Web Framework: HttpParser Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">C++ Web Framework
   &#160;<span id="projectnumber">3.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#friends">Friends</a> &#124;
<a href="class_http_parser-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">HttpParser Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>The class parses a HTTP message.  
 <a href="class_http_parser.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="httpparser_8h_source.html">httpparser.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a91e6c1876337b53694347476f277d1a2"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_parser.html#a91e6c1876337b53694347476f277d1a2">HttpParser</a> (QByteArray &amp;httpMessage)</td></tr>
<tr class="memdesc:a91e6c1876337b53694347476f277d1a2"><td class="mdescLeft">&#160;</td><td class="mdescRight">This constructor receives a HTTP message and parses it.  <a href="#a91e6c1876337b53694347476f277d1a2">More...</a><br /></td></tr>
<tr class="separator:a91e6c1876337b53694347476f277d1a2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3feddc6667494af792866935f4ccf794"><td class="memItemLeft" align="right" valign="top">qint64&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_parser.html#a3feddc6667494af792866935f4ccf794">getContentLenght</a> () const noexcept</td></tr>
<tr class="memdesc:a3feddc6667494af792866935f4ccf794"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the content lenght.  <a href="#a3feddc6667494af792866935f4ccf794">More...</a><br /></td></tr>
<tr class="separator:a3feddc6667494af792866935f4ccf794"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae17e4400169606e640fda4be21a5421b"><td class="memItemLeft" align="right" valign="top">QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_parser.html#ae17e4400169606e640fda4be21a5421b">getContentType</a> () const noexcept</td></tr>
<tr class="memdesc:ae17e4400169606e640fda4be21a5421b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the content type.  <a href="#ae17e4400169606e640fda4be21a5421b">More...</a><br /></td></tr>
<tr class="separator:ae17e4400169606e640fda4be21a5421b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58b5506be135040e9c1c1aa84be3090a"><td class="memItemLeft" align="right" valign="top">QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_parser.html#a58b5506be135040e9c1c1aa84be3090a">getHttpVersion</a> () const noexcept</td></tr>
<tr class="memdesc:a58b5506be135040e9c1c1aa84be3090a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the HTTP version.  <a href="#a58b5506be135040e9c1c1aa84be3090a">More...</a><br /></td></tr>
<tr class="separator:a58b5506be135040e9c1c1aa84be3090a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a307aeb76a3a03ab84f3ae090038760ba"><td class="memItemLeft" align="right" valign="top">QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_parser.html#a307aeb76a3a03ab84f3ae090038760ba">getMethod</a> () const noexcept</td></tr>
<tr class="memdesc:a307aeb76a3a03ab84f3ae090038760ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns HTTP method.  <a href="#a307aeb76a3a03ab84f3ae090038760ba">More...</a><br /></td></tr>
<tr class="separator:a307aeb76a3a03ab84f3ae090038760ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a730d8fa411954d674f602aa385869751"><td class="memItemLeft" align="right" valign="top">QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_parser.html#a730d8fa411954d674f602aa385869751">getBody</a> () const noexcept</td></tr>
<tr class="memdesc:a730d8fa411954d674f602aa385869751"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns HTTP body message.  <a href="#a730d8fa411954d674f602aa385869751">More...</a><br /></td></tr>
<tr class="separator:a730d8fa411954d674f602aa385869751"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad2c849df15ec861fca8911c0519747ae"><td class="memItemLeft" align="right" valign="top">QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_parser.html#ad2c849df15ec861fca8911c0519747ae">getSessionId</a> () const noexcept</td></tr>
<tr class="memdesc:ad2c849df15ec861fca8911c0519747ae"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns session id.  <a href="#ad2c849df15ec861fca8911c0519747ae">More...</a><br /></td></tr>
<tr class="separator:ad2c849df15ec861fca8911c0519747ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4fe7e2b589ec377ae0632d12c0db2109"><td class="memItemLeft" align="right" valign="top">QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_parser.html#a4fe7e2b589ec377ae0632d12c0db2109">getUrl</a> () const noexcept</td></tr>
<tr class="memdesc:a4fe7e2b589ec377ae0632d12c0db2109"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the url.  <a href="#a4fe7e2b589ec377ae0632d12c0db2109">More...</a><br /></td></tr>
<tr class="separator:a4fe7e2b589ec377ae0632d12c0db2109"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aec19aa9b28449ed359dd0e516f24f3c4"><td class="memItemLeft" align="right" valign="top">QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_parser.html#aec19aa9b28449ed359dd0e516f24f3c4">getParameter</a> (const QByteArray &amp;name) const noexcept</td></tr>
<tr class="memdesc:aec19aa9b28449ed359dd0e516f24f3c4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a specific parameter given a name. If the parameter name does not exists, the function returns defaultValue. If no defaultValue is specified, the function returns a default-constructed value. If there are multiple parameters with a name, the value of the most recently inserted one is returned.  <a href="#aec19aa9b28449ed359dd0e516f24f3c4">More...</a><br /></td></tr>
<tr class="separator:aec19aa9b28449ed359dd0e516f24f3c4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aa0df65d83e9bdb39a6a667d55de1b742"><td class="memItemLeft" align="right" valign="top">QByteArrayList&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_parser.html#aa0df65d83e9bdb39a6a667d55de1b742">getParameters</a> (const QByteArray &amp;name) const noexcept</td></tr>
<tr class="memdesc:aa0df65d83e9bdb39a6a667d55de1b742"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns all parameters with a specific name.  <a href="#aa0df65d83e9bdb39a6a667d55de1b742">More...</a><br /></td></tr>
<tr class="separator:aa0df65d83e9bdb39a6a667d55de1b742"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a98e85a16d456f61fa032c8d3d9a8c1ba"><td class="memItemLeft" align="right" valign="top">QMultiMap&lt; QByteArray, QByteArray &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_parser.html#a98e85a16d456f61fa032c8d3d9a8c1ba">getParameters</a> () const noexcept</td></tr>
<tr class="memdesc:a98e85a16d456f61fa032c8d3d9a8c1ba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns all parameters.  <a href="#a98e85a16d456f61fa032c8d3d9a8c1ba">More...</a><br /></td></tr>
<tr class="separator:a98e85a16d456f61fa032c8d3d9a8c1ba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abbb9bc6fdfbc6f40629d2f8033c9f17f"><td class="memItemLeft" align="right" valign="top">QMultiMap&lt; QByteArray, QByteArray &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_parser.html#abbb9bc6fdfbc6f40629d2f8033c9f17f">getUploadedFiles</a> () const noexcept</td></tr>
<tr class="memdesc:abbb9bc6fdfbc6f40629d2f8033c9f17f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns all uploaded files.  <a href="#abbb9bc6fdfbc6f40629d2f8033c9f17f">More...</a><br /></td></tr>
<tr class="separator:abbb9bc6fdfbc6f40629d2f8033c9f17f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac07c6676461725678a6fe7fcae7e79f7"><td class="memItemLeft" align="right" valign="top">QVector&lt; QNetworkCookie &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_parser.html#ac07c6676461725678a6fe7fcae7e79f7">getCookies</a> () const noexcept</td></tr>
<tr class="memdesc:ac07c6676461725678a6fe7fcae7e79f7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns all cookies.  <a href="#ac07c6676461725678a6fe7fcae7e79f7">More...</a><br /></td></tr>
<tr class="separator:ac07c6676461725678a6fe7fcae7e79f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab29e0fad07ccfa2ad565d1cc32da76cc"><td class="memItemLeft" align="right" valign="top">QByteArrayList&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_parser.html#ab29e0fad07ccfa2ad565d1cc32da76cc">getHeaderFields</a> (const QByteArray &amp;name) const noexcept</td></tr>
<tr class="memdesc:ab29e0fad07ccfa2ad565d1cc32da76cc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns all header fields given a specific name.  <a href="#ab29e0fad07ccfa2ad565d1cc32da76cc">More...</a><br /></td></tr>
<tr class="separator:ab29e0fad07ccfa2ad565d1cc32da76cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adabda41fe6457ab14b573a32085c2eea"><td class="memItemLeft" align="right" valign="top">QByteArray&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_parser.html#adabda41fe6457ab14b573a32085c2eea">getHeaderField</a> (const QByteArray &amp;name) const noexcept</td></tr>
<tr class="memdesc:adabda41fe6457ab14b573a32085c2eea"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a specific header field given a name. If the header field name does not exists, the function returns defaultValue. If no defaultValue is specified, the function returns a default-constructed value. If there are multiple header field with a name, the value of the most recently inserted one is returned.  <a href="#adabda41fe6457ab14b573a32085c2eea">More...</a><br /></td></tr>
<tr class="separator:adabda41fe6457ab14b573a32085c2eea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6d5020425a4dff7b78acbf37a20cccba"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_parser.html#a6d5020425a4dff7b78acbf37a20cccba">isValid</a> () const noexcept</td></tr>
<tr class="memdesc:a6d5020425a4dff7b78acbf37a20cccba"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if HTTP is valid, else it returns false.  <a href="#a6d5020425a4dff7b78acbf37a20cccba">More...</a><br /></td></tr>
<tr class="separator:a6d5020425a4dff7b78acbf37a20cccba"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a83946a3296e540751e5715d974dc12b1"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_parser.html#a83946a3296e540751e5715d974dc12b1">isMultiPart</a> () const noexcept</td></tr>
<tr class="memdesc:a83946a3296e540751e5715d974dc12b1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the multi part.  <a href="#a83946a3296e540751e5715d974dc12b1">More...</a><br /></td></tr>
<tr class="separator:a83946a3296e540751e5715d974dc12b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3be6ae977af47186d80b67f26b4cbd69"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_http_parser.html#a3be6ae977af47186d80b67f26b4cbd69">getReadFile</a> () const noexcept</td></tr>
<tr class="memdesc:a3be6ae977af47186d80b67f26b4cbd69"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns true if all message was read.  <a href="#a3be6ae977af47186d80b67f26b4cbd69">More...</a><br /></td></tr>
<tr class="separator:a3be6ae977af47186d80b67f26b4cbd69"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="friends"></a>
Friends</h2></td></tr>
<tr class="memitem:a4d54f5003e07e218070a449c22a52c7c"><td class="memItemLeft" align="right" valign="top"><a id="a4d54f5003e07e218070a449c22a52c7c"></a>
class&#160;</td><td class="memItemRight" valign="bottom"><b>HttpReadRequest</b></td></tr>
<tr class="separator:a4d54f5003e07e218070a449c22a52c7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>The class parses a HTTP message. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a91e6c1876337b53694347476f277d1a2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a91e6c1876337b53694347476f277d1a2">&#9670;&nbsp;</a></span>HttpParser()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">HttpParser::HttpParser </td>
          <td>(</td>
          <td class="paramtype">QByteArray &amp;&#160;</td>
          <td class="paramname"><em>httpMessage</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">explicit</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>This constructor receives a HTTP message and parses it. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">QByteArray</td><td>&amp;httpMessage : HTTP message. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a730d8fa411954d674f602aa385869751"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a730d8fa411954d674f602aa385869751">&#9670;&nbsp;</a></span>getBody()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QByteArray HttpParser::getBody </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns HTTP body message. </p>
<dl class="section return"><dt>Returns</dt><dd>QByteArray : HTTP body message. </dd></dl>

</div>
</div>
<a id="a3feddc6667494af792866935f4ccf794"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3feddc6667494af792866935f4ccf794">&#9670;&nbsp;</a></span>getContentLenght()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">qint64 HttpParser::getContentLenght </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the content lenght. </p>
<dl class="section return"><dt>Returns</dt><dd>qint64 : Content length. </dd></dl>

</div>
</div>
<a id="ae17e4400169606e640fda4be21a5421b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae17e4400169606e640fda4be21a5421b">&#9670;&nbsp;</a></span>getContentType()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QByteArray HttpParser::getContentType </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the content type. </p>
<dl class="section return"><dt>Returns</dt><dd>QByteArray : Content type. </dd></dl>

</div>
</div>
<a id="ac07c6676461725678a6fe7fcae7e79f7"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac07c6676461725678a6fe7fcae7e79f7">&#9670;&nbsp;</a></span>getCookies()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QVector&lt;QNetworkCookie&gt; HttpParser::getCookies </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns all cookies. </p>
<dl class="section return"><dt>Returns</dt><dd>QVector&lt;QNetworkCookie&gt; : Cookies. </dd></dl>

</div>
</div>
<a id="adabda41fe6457ab14b573a32085c2eea"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adabda41fe6457ab14b573a32085c2eea">&#9670;&nbsp;</a></span>getHeaderField()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QByteArray HttpParser::getHeaderField </td>
          <td>(</td>
          <td class="paramtype">const QByteArray &amp;&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a specific header field given a name. If the header field name does not exists, the function returns defaultValue. If no defaultValue is specified, the function returns a default-constructed value. If there are multiple header field with a name, the value of the most recently inserted one is returned. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>QByteArray &amp;name : Parameter name. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>QByteArray : Parameter value. </dd></dl>

</div>
</div>
<a id="ab29e0fad07ccfa2ad565d1cc32da76cc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab29e0fad07ccfa2ad565d1cc32da76cc">&#9670;&nbsp;</a></span>getHeaderFields()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QByteArrayList HttpParser::getHeaderFields </td>
          <td>(</td>
          <td class="paramtype">const QByteArray &amp;&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns all header fields given a specific name. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>QByteArray &amp;headerField : Header field name. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>QByteArrayList : Header fields. </dd></dl>

</div>
</div>
<a id="a58b5506be135040e9c1c1aa84be3090a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a58b5506be135040e9c1c1aa84be3090a">&#9670;&nbsp;</a></span>getHttpVersion()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QByteArray HttpParser::getHttpVersion </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the HTTP version. </p>
<dl class="section return"><dt>Returns</dt><dd>QByteArray : HTTP version. </dd></dl>

</div>
</div>
<a id="a307aeb76a3a03ab84f3ae090038760ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a307aeb76a3a03ab84f3ae090038760ba">&#9670;&nbsp;</a></span>getMethod()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QByteArray HttpParser::getMethod </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns HTTP method. </p>
<dl class="section return"><dt>Returns</dt><dd>QByteArray : HTTP method. </dd></dl>

</div>
</div>
<a id="aec19aa9b28449ed359dd0e516f24f3c4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aec19aa9b28449ed359dd0e516f24f3c4">&#9670;&nbsp;</a></span>getParameter()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QByteArray HttpParser::getParameter </td>
          <td>(</td>
          <td class="paramtype">const QByteArray &amp;&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns a specific parameter given a name. If the parameter name does not exists, the function returns defaultValue. If no defaultValue is specified, the function returns a default-constructed value. If there are multiple parameters with a name, the value of the most recently inserted one is returned. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>QByteArray &amp;name : Parameter name. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>QByteArray : Parameter value. </dd></dl>

</div>
</div>
<a id="aa0df65d83e9bdb39a6a667d55de1b742"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aa0df65d83e9bdb39a6a667d55de1b742">&#9670;&nbsp;</a></span>getParameters() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QByteArrayList HttpParser::getParameters </td>
          <td>(</td>
          <td class="paramtype">const QByteArray &amp;&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns all parameters with a specific name. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">const</td><td>QByteArray &amp;name : Parameter name. </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>QByteArrayList : Parameters list. </dd></dl>

</div>
</div>
<a id="a98e85a16d456f61fa032c8d3d9a8c1ba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a98e85a16d456f61fa032c8d3d9a8c1ba">&#9670;&nbsp;</a></span>getParameters() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QMultiMap&lt;QByteArray, QByteArray&gt; HttpParser::getParameters </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns all parameters. </p>
<dl class="section return"><dt>Returns</dt><dd>QMap&lt;QByteArray, QByteArray&gt; : Parameters name and value. </dd></dl>

</div>
</div>
<a id="a3be6ae977af47186d80b67f26b4cbd69"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3be6ae977af47186d80b67f26b4cbd69">&#9670;&nbsp;</a></span>getReadFile()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool HttpParser::getReadFile </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns true if all message was read. </p>
<dl class="section return"><dt>Returns</dt><dd>bool : Read file. </dd></dl>

</div>
</div>
<a id="ad2c849df15ec861fca8911c0519747ae"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad2c849df15ec861fca8911c0519747ae">&#9670;&nbsp;</a></span>getSessionId()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QByteArray HttpParser::getSessionId </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns session id. </p>
<dl class="section return"><dt>Returns</dt><dd>QByteArray : session id. </dd></dl>

</div>
</div>
<a id="abbb9bc6fdfbc6f40629d2f8033c9f17f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#abbb9bc6fdfbc6f40629d2f8033c9f17f">&#9670;&nbsp;</a></span>getUploadedFiles()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QMultiMap&lt;QByteArray, QByteArray&gt; HttpParser::getUploadedFiles </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns all uploaded files. </p>
<dl class="section return"><dt>Returns</dt><dd>QMultiMap&lt;QByteArray, QByteArray&gt; : Files name and content. </dd></dl>

</div>
</div>
<a id="a4fe7e2b589ec377ae0632d12c0db2109"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4fe7e2b589ec377ae0632d12c0db2109">&#9670;&nbsp;</a></span>getUrl()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">QByteArray HttpParser::getUrl </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the url. </p>
<dl class="section return"><dt>Returns</dt><dd>QByteArray : url. </dd></dl>

</div>
</div>
<a id="a83946a3296e540751e5715d974dc12b1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a83946a3296e540751e5715d974dc12b1">&#9670;&nbsp;</a></span>isMultiPart()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool HttpParser::isMultiPart </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns the multi part. </p>
<dl class="section return"><dt>Returns</dt><dd>bool : Multi part. </dd></dl>

</div>
</div>
<a id="a6d5020425a4dff7b78acbf37a20cccba"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6d5020425a4dff7b78acbf37a20cccba">&#9670;&nbsp;</a></span>isValid()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool HttpParser::isValid </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Returns true if HTTP is valid, else it returns false. </p>
<dl class="section return"><dt>Returns</dt><dd>bool : HTTP message valid. </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>/home/herik/CPPWebFramework/CPPWebFramework/cwf/<a class="el" href="httpparser_8h_source.html">httpparser.h</a></li>
<li>/home/herik/CPPWebFramework/CPPWebFramework/cwf/httpparser.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon May 28 2018 11:09:09 for C++ Web Framework by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
